package com.example.secondhandshop.bean;

public class Chatitem {
    String content;
    long createTime;
    int fromUserId;
    String fromUsername;
    int id;
    boolean status;
    int userId;
    String username;
    private int type;
    public static final int TYPE_SENT = 0;
    public static final int TYPE_RECEIVED = 1;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


    public String toString() {
        return "Message{" +
                "content='" + content + '\'' +
                ", createTime=" + createTime +
                ", fromUserId=" + fromUserId +
                ", fromUsername='" + fromUsername + '\'' +
                ", id=" + id +
                ", status=" + status +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                '}';
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFromUsername() {
        return fromUsername;
    }

    public void setFromUsername(String fromUsername) {
        this.fromUsername = fromUsername;
    }

    public int getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(int fromUserId) {
        this.fromUserId = fromUserId;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}
